package com.example.design.patterns.geekbang.创建型.单例模式.替代方案.单机;

public class Singleton3 {
    private static Singleton3 instance = null;
    private final int paramA;
    private final int paramB;

    private Singleton3() {
        this.paramA = Config.PARAM_A;
        this.paramB = Config.PARAM_B;
    }

    public synchronized static Singleton3 getInstance() {
        if (instance == null) {
            instance = new Singleton3();
        }
        return instance;
    }
}